z = []
for i,j in enumerate(categories):
	 inner = [parent_n, name, link,is_visible]
     z.append("menu[%s] = new Item(%s, '%s', '%s', '', '', false, '2','%s', '','');"%inner)
     


menu[2] = new Item(1, "Ðóññêàÿ - ñîáðàíèÿ ñî÷èíåíèé ïîëíûå", '/ru/fiction/rus-full/', '', '', false, '2','', '','');
menu[3] = new Item(1, "Ðóññêàÿ – ñîáðàíèÿ ñî÷èíåíèé, îòäåëüíûå òîìà", '/ru/fiction/rus-separate/', '', '', false, '2','', '','');
menu[4] = new Item(1, "Ðóññêàÿ – ïðîçà", '/ru/fiction/rus-prose/', '', '', false, '2','', '','');
menu[5] = new Item(1, "Ðóññêàÿ – ïîýçèÿ", '/ru/fiction/rus-poetry/', '', '', false, '2','', '','');
menu[6] = new Item(1, "Çàðóáåæíàÿ – ñîáðàíèÿ ñî÷èíåíèé ïîëíûå", '/ru/fiction/foreign-full/', '', '', false, '2','', '','');
menu[7] = new Item(1, "Çàðóáåæíàÿ – ñîáðàíèÿ ñî÷èíåíèé – îòäåëüíûå òîìà", '/ru/fiction/foreign-separate/', '', '', false, '2','', '','');
menu[8] = new Item(1, "Çàðóáåæíàÿ ïðîçà", '/ru/fiction/foreign-prose/', '', '', false, '2','', '','');
menu[9] = new Item(1, "Çàðóáåæíàÿ ïîýçèÿ", '/ru/fiction/foreign-poetry/', '', '', false, '2','', '','');
menu[1] = new Item(0, "Áåëëåòðèñòèêà", '/ru/fiction/', '', '', false, '2','', '','');
menu[12] = new Item(11, "IX – XVII ââ", '/ru/history/russian/IX-XVII/', '', '', false, '2','', '','');
menu[13] = new Item(11, "XVIII – XIX ââ", '/ru/history/russian/XVIII-XIX/', '', '', false, '2','', '','');
menu[14] = new Item(11, "XIX – XX ââ.", '/ru/history/russian/XIX-XX/', '', '', false, '2','', '','');
menu[11] = new Item(10, "Ðóññêàÿ", '/ru/history/russian/', '', '', false, '2','', '','');
menu[15] = new Item(10, "Äðåâíÿÿ", '/ru/history/ancient/', '', '', false, '2','', '','');
menu[16] = new Item(10, "Çàðóáåæíàÿ íîâàÿ", '/ru/history/foreign-new/', '', '', false, '2','', '','');
menu[17] = new Item(10, "Ïóòåøåñòâèÿ", '/ru/history/geography/', '', '', false, '2','', '','');
menu[18] = new Item(10, "Ïóòåâîäèòåëè", '/ru/history/guide/', '', '', false, '2','', '','');
menu[19] = new Item(10, "Ñòðàíîâåäåíèå", '/ru/history/regional_geography/', '', '', false, '2','', '','');
menu[20] = new Item(10, "Àðõåîëîãèÿ", '/ru/history/archaeology/', '', '', false, '2','', '','');
menu[21] = new Item(10, "Ìåìóàðû", '/ru/history/memoirs/', '', '', false, '2','', '','');
menu[22] = new Item(10, "Áèîãðàôèè", '/ru/history/biography/', '', '', false, '2','', '','');
menu[23] = new Item(10, "Ïóáëèêàöèè äîêóìåíòîâ", '/ru/history/publication_document/', '', '', false, '2','', '','');
menu[10] = new Item(0, "Èñòîðèÿ è ãåîãðàôèÿ", '/ru/history/', '', '', false, '2','', '','');
menu[25] = new Item(24, "Ìîñêâà", '/ru/goroda_rossii/moskva/', '', '', false, '2','', '','');
menu[26] = new Item(24, "Ñàíêò-Ïåòåðáóðã", '/ru/goroda_rossii/piter/', '', '', false, '2','', '','');
menu[27] = new Item(24, "Äðóãèå ãîðîäà", '/ru/goroda_rossii/Others/', '', '', false, '2','', '','');
menu[24] = new Item(0, "Ãîðîäà Ðîññèè", '/ru/goroda_rossii/', '', '', false, '2','', '','');
menu[28] = new Item(0, "Ýòíîãðàôèÿ", '/ru/etn/', '', '', false, '2','', '','');
menu[29] = new Item(0, "Ôîëüêëîð", '/ru/folklor/', '', '', false, '2','', '','');
menu[31] = new Item(30, "Ìàòåìàòèêà è ôèçèêà", '/ru/nsciences/mathandphysics/', '', '', false, '2','', '','');
menu[32] = new Item(30, "Ãåîëîãèÿ", '/ru/nsciences/geology/', '', '', false, '2','', '','');
menu[33] = new Item(30, "Áèîëîãèÿ", '/ru/nsciences/biology/', '', '', false, '2','', '','');
menu[34] = new Item(30, "Õèìèÿ", '/ru/nsciences/chemistry/', '', '', false, '2','', '','');
menu[35] = new Item(30, "Àñòðîíîìèÿ", '/ru/nsciences/astronomy/', '', '', false, '2','', '','');
menu[30] = new Item(0, "Åñòåñòâåííûå íàóêè", '/ru/nsciences/', '', '', false, '2','', '','');
menu[37] = new Item(36, "Ôèëîñîôèÿ", '/ru/humanities/philosophy/', '', '', false, '2','', '','');
menu[38] = new Item(36, "Ýêîíîìèêà", '/ru/humanities/economics/', '', '', false, '2','', '','');
menu[39] = new Item(36, "Ïðàâî", '/ru/humanities/law/', '', '', false, '2','', '','');
menu[40] = new Item(36, "Ñîöèîëîãèÿ", '/ru/humanities/sociology/', '', '', false, '2','', '','');
menu[41] = new Item(36, "Êíèãîâåäåíèå", '/ru/humanities/bibliology/', '', '', false, '2','', '','');
menu[42] = new Item(36, "Ëèòåðàòóðîâåäåíèå", '/ru/humanities/literature/', '', '', false, '2','', '','');
menu[43] = new Item(36, "ßçûêîçíàíèå", '/ru/humanities/yazikoznanie/', '', '', false, '2','', '','');
menu[44] = new Item(36, "Ïåäàãîãèêà", '/ru/humanities/pedagogika/', '', '', false, '2','', '','');
menu[36] = new Item(0, "Ãóìàíèòàðíûå íàóêè", '/ru/humanities/', '', '', false, '2','', '','');
menu[46] = new Item(45, "Äîìàøíåå õîçÿéñòâî", '/ru/aknowledges/household/', '', '', false, '2','', '','');
menu[47] = new Item(45, "Ñåëüñêîå õîçÿéñòâî", '/ru/aknowledges/agriculture/', '', '', false, '2','', '','');
menu[48] = new Item(45, "Ðåìåñëà", '/ru/aknowledges/crafts/', '', '', false, '2','', '','');
menu[49] = new Item(45, "Ñòðîèòåëüñòâî", '/ru/aknowledges/construction/', '', '', false, '2','', '','');
menu[50] = new Item(45, "Îõîòà", '/ru/aknowledges/hunt/', '', '', false, '2','', '','');
menu[51] = new Item(45, "Ïðîìûøëåííîñòü è òåõíèêà", '/ru/aknowledges/industry_technique/', '', '', false, '2','', '','');
menu[52] = new Item(45, "Òðàíñïîðò", '/ru/aknowledges/transport/', '', '', false, '2','', '','');
menu[53] = new Item(45, "Ìåäèöèíà è ôàðìàêîëîãèÿ", '/ru/aknowledges/medicine/', '', '', false, '2','', '','');
menu[45] = new Item(0, "Ïðèêëàäíûå çíàíèÿ", '/ru/aknowledges/', '', '', false, '2','', '','');
menu[54] = new Item(0, "Âîåííîå äåëî", '/ru/voen_delo/', '', '', false, '2','', '','');
menu[55] = new Item(0, "Ðåëèãèÿ", '/ru/religion/', '', '', false, '2','', '','');
menu[57] = new Item(56, "Æèâîïèñü", '/ru/art/painting/', '', '', false, '2','', '','');
menu[58] = new Item(56, "Ñêóëüïòóðà", '/ru/art/sculpture/', '', '', false, '2','', '','');
menu[59] = new Item(56, "Ìóçûêà", '/ru/art/music/', '', '', false, '2','', '','');
menu[60] = new Item(56, "Òåàòð", '/ru/art/theatre/', '', '', false, '2','', '','');
menu[61] = new Item(56, "Êèíî", '/ru/art/cinema/', '', '', false, '2','', '','');
menu[62] = new Item(56, "Àðõèòåêòóðà", '/ru/art/architecture/', '', '', false, '2','', '','');
menu[63] = new Item(56, "Áàëåò è îïåðà", '/ru/art/balletandopera/', '', '', false, '2','', '','');
menu[64] = new Item(56, "Ñïîðò", '/ru/art/sport/', '', '', false, '2','', '','');
menu[65] = new Item(56, "Èñòîðèÿ", '/ru/art/history/', '', '', false, '2','', '','');
menu[66] = new Item(56, "Òåîðèÿ", '/ru/art/theory/', '', '', false, '2','', '','');
menu[67] = new Item(56, "Äåêîðàòèâíî-ïðèêëàäíîå", '/ru/art/arts_crafts/', '', '', false, '2','', '','');
menu[56] = new Item(0, "Èñêóññòâî è ñïîðò", '/ru/art/', '', '', false, '2','', '','');
menu[69] = new Item(68, "Áèáëèîãðàôèÿ", '/ru/encyclopedias/bibliography/', '', '', false, '2','', '','');
menu[70] = new Item(68, "ßçûêîâûå ñëîâàðè", '/ru/encyclopedias/language/', '', '', false, '2','', '','');
menu[71] = new Item(68, "Òîëêîâûå ñëîâàðè", '/ru/encyclopedias/dictionaries/', '', '', false, '2','', '','');
menu[72] = new Item(68, "Ïðî÷èå ñïðàâî÷íèêè", '/ru/encyclopedias/other/', '', '', false, '2','', '','');
menu[68] = new Item(0, "Ñïðàâî÷íèêè è ýíöèêëîïåäèè", '/ru/encyclopedias/', '', '', false, '2','', '','');
menu[74] = new Item(73, "Êîìïëåêòû ïîëíûå è ãîäîâûå", '/ru/ppublishing/kitsfull/', '', '', false, '2','', '','');
menu[75] = new Item(73, "Îòäåëüíûå íîìåðà", '/ru/ppublishing/separate/', '', '', false, '2','', '','');
menu[73] = new Item(0, "Ïåðèîäè÷åñêèå èçäàíèÿ", '/ru/ppublishing/', '', '', false, '2','', '','');
menu[76] = new Item(0, "Êíèãè íà èíîñòðàííûõ ÿçûêàõ", '/ru/languages/', '', '', false, '2','', '','');
menu[77] = new Item(0, "Äåòñêèå êíèãè", '/ru/baby/', '', '', false, '2','', '','');
menu[78] = new Item(0, "Ìóçåè è ÷àñòíûå êîëëåêöèè", '/ru/muzei/', '', '', false, '2','', '','');
menu[79] = new Item(0, "Íóìèçìàòèêà", '/ru/numizmatica/', '', '', false, '2','', '','');
menu[80] = new Item(0, "Ãðàôèêà", '/ru/graphica/', '', '', false, '2','', '','');
menu[81] = new Item(0, "Àëüáîìû. Îòêðûòêè. Ôîòîãðàôèè", '/ru/alb/', '', '', false, '2','', '','');
menu[82] = new Item(0, "Ïîäàðî÷íûå èçäàíèÿ", '/ru/PI/', '', '', false, '2','', '','');
menu[83] = new Item(0, "Êíèæíûå ðåäêîñòè", '/ru/KR/', '', '', false, '2','', '','');
menu[84] = new Item(0, "Ðàçíîå", '/ru/other/', '', '', false, '2','', '','');""" 


